//
//  Const.h
//  CreditManger
//
//  Created by chaiyanan on 15/10/13.
//  Copyright © 2015年 jinxin. All rights reserved.
//

#ifndef Const_h
#define Const_h

#define DefaultSystemVersion    [[UIDevice currentDevice]systemVersion]
#define DefaultAppVersion       [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]

#define IsIphone4           [[UIScreen mainScreen] bounds].size.height <= 480
#define IsNotIphone4        [[UIScreen mainScreen] bounds].size.height > 480
#define IsIphone5           ([[UIScreen mainScreen] bounds].size.width == 320&&[[UIScreen mainScreen] bounds].size.height == 568)
#define IsIphone6           [[UIScreen mainScreen] bounds].size.width == 375
#define IsIphone6P           [[UIScreen mainScreen] bounds].size.width == 414

//----------------------------------------------------------------------------

#pragma mark - reCode
#define REGIST_CODE_TIME @"REGIST_CODE_TIME"
#define FORGET_CODE_TIME @"FORGET_CODE_TIME"
#define BINDPHONE_CODE_TIME @"BINDPHONE_CODE_TIME"


#pragma mark - Key
#define Key_Code        @"errorCode"
#define Key_Msg         @"errorMessage"
#define Key_Data        @"data"

#define Key_mobile      @"mobile"
#define Key_gid         @"gid"
#define Key_imageCode   @"imageCode"

#define Key_mobile      @"mobile"
#define Key_password    @"password"
#define Key_mobileCode  @"mobileCode"
#define Key_os          @"os"
#define Key_gid         @"gid"
#define Key_appVersion  @"appVersion"
#define Key_channel     @"channel"
#define Key_factory     @"factory"
#define Key_model       @"model"
#define Key_osVersion   @"osVersion"
#define Key_resolution  @"resolution"

#define Key_uid         @"uid"
#define Key_token       @"token"
#define Key_username    @"username"
#define Key_cardno      @"cardno"
#define Key_headImg     @"headImg"
#define Key_identityStatus      @"identityStatus"

#define Key_file        @"file"
#define Key_file1       @"file1"
#define Key_file2       @"file2"
#define Key_file3       @"file3"
#define Key_file4       @"file4"
#define Key_id          @"id"
#define Key_sort        @"sort"
#define Key_title       @"title"
#define Key_createTime  @"createTime"
#define Key_content     @"content"

#define Key_realName    @"realName"
#define Key_cardNo      @"cardNo"
#define Key_authCode    @"authCode"

#define Key_userName    @"userName"
#define Key_mobile      @"mobile"
#define Key_confirmePassword    @"confirmePassword"
#define Key_email       @"email"
#define Key_authCode    @"authCode"
#define Key_spassword   @"spassword"
#define Key_loginName   @"loginName"
#define Key_answers     @"answers"

#define Key_zxList      @"zxList"
#define Key_cardtype    @"cardtype"
#define Key_source      @"source"
#define Key_merry       @"merry"
#define Key_realname    @"realname"
#define Key_summaryData @"summaryData"
#define Key_state       @"state"
#define Key_xinyNum     @"xinyNum"
#define Key_zhufNum     @"zhufNum"
#define Key_qitNum      @"qitNum"

#define Key_timeunit    @"timeunit"
#define Key_quantGroupToken @"quantGroupToken"
#define Key_url         @"url"



//----------------------------------------------------------------------------

#pragma mark -
#pragma mark - Method

#define Method_getRegMobileCode         @"/user/getRegMobileCode.do"
#define Method_getRegImageCode          @"/user/getRegImageCode.do"
#define Method_regist                   @"/user/regist.do"
#define Method_login                    @"/user/login.do"
#define Method_getPwdMobileCode         @"/user/getPwdMobileCode.do"
#define Method_getPwdImageCode          @"/user/getPwdImageCode.do"
#define Method_checkPwdMobileCode       @"/user/checkPwdMobileCode.do"
#define Method_resetUserPwd             @"/user/resetUserPwd.do"
#define Method_userIdentity             @"/user/userIdentity.do"
#define Method_uploadImg                @"/user/uploadImg.do"
#define Method_getUserInfo              @"/user/getUserInfo.do"
#define Method_logout                   @"/user/logout.do"

#define Method_getTitles                            @"/userHelp/getTitles.do"
#define Method_getContent                           @"/userHelp/getContent.do"
#define Method_registGetPicCodeUrl                  @"/CentralBankUser/registGetPicCodeUrl.do"
#define Method_registFirstStep                      @"/CentralBankUser/registFirstStep.do"
#define Method_registGetMsgCode                     @"/CentralBankUser/registGetMsgCode.do"
#define Method_registSecondStep                     @"/CentralBankUser/registSecondStep.do"
#define Method_loginGetPicCodeUrl                   @"/CentralBankUser/loginGetPicCodeUrl.do"
#define Method_bankLogin                            @"/CentralBankUser/login.do"
#define Method_getQuestion                          @"/vertify/getQuestion.do"
#define Method_submitAnswers                        @"/vertify/submitAnswers.do"
#define Method_getZXReport                          @"/report/getZXReport.do"
#define Method_findReportByUid                      @"/report/findReportByUid.do"

#define Method_userFeedback                         @"/feedback/userFeedback.do"
#define Method_getAppUrl                            @"/user/getAppUrl.do"

#define Method_getBindMobileCode                    @"/user/getBindMobileCode.do"
#define Method_userBindMobile                       @"/user/userBindMobile.do"


//----------------------------------------------------------------------------
#pragma mark - Notification

#define Notification_LoginDismiss       @"LoginDismiss"
#define Notification_addOrderSuccess    @"addOrderSuccess"
#define Notification_refreshUserInfo    @"refreshUserInfo"



#endif /* Const_h */
